icon-theme: Avoid reentrancy issues while loading icon theme
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 17:19:56 +0000 (18:19 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 17:19:56 +0000 (18:19 +0100)
commitd478ae1ef5731a0e0005875589575f8c1b91a5b9
tree45e55688a7a0b01de79b35285908207d882f65f4
parentb67d5822308a5dcd41423eb57acf41897df18d01
icon-theme: Avoid reentrancy issues while loading icon theme

In gtk_icon_theme_get_for_display() we were calling
gtk_icon_theme_set_display() which eventually (via the css machinery)
called back into gtk_icon_theme_get_for_display() which created a
second icon theme. We avoid this by setting the user-data earlier so
that the css machinery gets back the currently initializing theme
instead.
gtk/gtkicontheme.c